﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMSModel;

public partial class Topics_delete : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CMSEntities cms = new CMSEntities();
        Guid g=new Guid( Request["id"]);
        cms.Topics.DeleteObject(cms.Topics.First(x => x.ID == g));
        cms.SaveChanges();
        ClientScript.RegisterStartupScript(GetType(),"aa", "alert('删除成功');document.location='default.aspx'", true);
    }
}